Skip to content

Add macOS target support - #46

Merged
LaStrada merged 3 commits into
Airthings:mainfrom
LaStrada:feature/add-macos-target
Aug 4, 2026
Merged

Add macOS target support#46
LaStrada merged 3 commits into
Airthings:mainfrom
LaStrada:feature/add-macos-target

Conversation

@LaStrada

Copy link
Copy Markdown
Member

Description ✏️

Adds macOS support so a macOS Swift consumer can use KmpLog: macosX64 + macosArm64 Kotlin/Native targets, macOS (min 11) added to the KMMBridge xcframework, the shared Apple platform implementations moved from iosMain to appleMain (so they serve iOS and macOS), and a Package.swift.

Screenshots / Recordings 📷

How to Test 🐛

./gradlew build — all targets compile and tests pass (macosArm64Test runs; macosX64Test is host-skipped on Apple Silicon but compiles/links). The assembled xcframework includes a macos-arm64_x86_64 slice.

References 🔗

Add macOS Kotlin/Native targets and include macOS in the KMMBridge xcframework (min macOS 11). Move the shared Apple platform implementations (PlatformFileInputOutput, PlatformPrinterLoggerFacility) from iosMain to appleMain so they serve both iOS and macOS. Add Package.swift exposing the xcframework as a Swift package.
@LaStrada
LaStrada marked this pull request as ready for review August 4, 2026 10:18
@LaStrada
LaStrada requested review from a team as code owners August 4, 2026 10:18
The manifest is generated, not authored. `gradlew spmDevBuild` writes the
local-dev variant that points at the debug XCFramework, and the publish job
writes the release variant carrying the artifact URL and checksum, commits it,
and moves the release tag onto that commit. The default branch has never
carried one.

The tracked copy was spmDevBuild output that got checked in: deleting it and
re-running the task reproduces it byte for byte. Ignore it so a local debug
manifest can't reach a release.
Without this, running the spmDevBuild task leaves an untracked manifest in the
working tree that can be committed again by accident.
@LaStrada
LaStrada merged commit 0f2b73f into Airthings:main Aug 4, 2026
2 checks passed
@LaStrada
LaStrada deleted the feature/add-macos-target branch August 4, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants